# -*- coding: utf-8 -*-
class BasePage(object):

    def __init__(self, driver, location):
        self._location = location
        self._driver = driver

    def open(self):
        self._driver.get(self._location)

    def is_right_location(self, title):
        return self._driver.title == title
